package corewarsxxi.logic.throwables;

import corewarsxxi.logic.Core.SimulationResults;

/**
 * This class indicates that the simulation as come to an end.
 *
 * @version 1.0
 * @author  Luís Fonseca, ei10139 @ FEUP
 */
public class simulationOver extends Throwable {
    private SimulationResults sr;

    /**
     * Public constructor which requires the simulation results.
     * @param sr the SimulationResults object
     */
    public simulationOver(SimulationResults sr)
    {
        this.sr = sr;
    }

    /**
     * @return gets the simulation results.
     */
    public SimulationResults getSimulationResults()
    {
        return sr;
    }
}
